import { Component, OnInit } from '@angular/core';
import {tuikeSystemUrl} from "../../../../config/api";
import {HttpService} from "../../../lib/service/http.service";

@Component({
  selector: 'app-account',
  templateUrl: './account.component.html',
  styleUrls: ['./account.component.scss']
})
export class AccountComponent implements OnInit {
  staticModal;
  totalItems: number;
  currentPage: number;
  itemsPerPage: number;
  constructor(private httpService: HttpService) { }

  ngOnInit() {
    this.getAccoutList();
  }

  pageChanged(event: any): void {

  }

  getAccoutList() {
    const url = `${tuikeSystemUrl}/api/v1/admin/rbac/admin_index`;
    console.log(url);
    this.httpService.httpGetAuth(url).subscribe(res => {
      console.log(res);
    })
  }
}
